class check(object):
    def __init__(self, fn):
        self.__fn = fn

    def __call__(self, *args, **kwargs):
        print("请先登录.....")
        self.__fn()


# def commment():
#     print("发表评论！")


# newFun = check(commment)
@check
def commment():
    print("发表评论！")


commment()
